package org.wk.user.domain;

import org.hibernate.annotations.GenericGenerator;
import org.wk.core.db.domain.BaseEntity;

import javax.persistence.*;
import java.util.Date;

/**
 * @ClassName Attendances
 * @Description 签到记录
 * @Author ZhaoPing'an
 * @Date 2018/5/21 13:41
 */
@Entity(name = "org.wk.user.domain.Attendances")
@Table(name = "s_attendances")
public class Attendances extends BaseEntity {

    private static final long serialVersionUID = 1L;
    @Id
    @Column(name = "id", unique = true, nullable = false, length = 32)
    @GeneratedValue(generator="system-uuid")
    @GenericGenerator(name="system-uuid",strategy = "uuid")
    private String id;
    // 用户ID
    @Column
    private String userId;
    // 签到日期(精确到天)
    @Column
    @Temporal(TemporalType.DATE)
    private Date signDate;

    public String getId() {
        return id;
    }

    public String getUserId() {
        return userId;
    }

    public Date getSignDate() {
        return signDate;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public void setSignDate(Date signDate) {
        this.signDate = signDate;
    }
}
